package com.example.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 设备报修表
 * </p>
 *
 * @author baomidou
 * @since 2025-05-15
 */
@Getter
@Setter
public class Repair implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 报修编号
     */
    @TableId(value = "repair_id", type = IdType.AUTO)
    private Integer repairId;

    /**
     * 设备编号
     */
    private Integer deviceId;

    /**
     * 报修部门ID
     */
    private Integer deptId;

    /**
     * 故障表现
     */
    private String faultDescription;

    /**
     * 审核状态 0-未审核 1-已审核 2-不通过
     */
    private Integer auditStatus;

    /**
     * 维修结果
     */
    private String repairResult;

    /**
     * 是否报废
     */
    private Boolean isScrapped;

    /**
     * 报废审核 0-未审核 1-已审核
     */
    private Integer scrapAuditStatus;

    /**
     * 审核意见
     */
    private String auditComment;

    /**
     * 维修方案
     */
    private String repairPlan;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
}
